package com.jzsqdy.mycat.domain;

public class Statistic {

    public Statistic(){
        this.server = System.getProperty("jzsqdy.server");
        this.rule = System.getProperty("jzsqdy.rule");
    }

    @Override
    public String toString() {
        return "Statistic{" +
                " server='" + server + '\'' +
                "| id='" + monitoredObjectId + '\'' +
                "| data=" + data +
                "| rule='" + rule + '\'' +
                "| avgTime=" + avgTime +
                '}';
    }

    private String monitoredObjectId;
    /**
     * 使用的服务器
     * server/mysql
     */
    private String server;
    /**
     * 数据量
     */
    private Long data;
    /**
     * 分片规则
     */
    private String rule;
    /**
     * 300次查询平均耗时
     */
    private Long avgTime;

    public String getMonitoredObjectId() {
        return monitoredObjectId;
    }

    public void setMonitoredObjectId(String monitoredObjectId) {
        this.monitoredObjectId = monitoredObjectId;
    }

    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    public Long getData() {
        return data;
    }

    public void setData(Long data) {
        this.data = data;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public Long getAvgTime() {
        return avgTime;
    }

    public void setAvgTime(Long avgTime) {
        this.avgTime = avgTime;
    }


}
